//
//  MyDetailScrollView.m
//  iphoneApp
//
//  Created by Liyu on 12-12-3.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "LYScrollView.h"

@implementation LYScrollView

@synthesize tapDelegate;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    NSLog(@"touchesEnded");
    if (tapDelegate!=nil
        && [self.tapDelegate respondsToSelector:@selector(lyScrollViewDidTap:)]) {
        
        [self.tapDelegate lyScrollViewDidTap:self];
        
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
